/*******************************************************************************
 * Copyright (c) 2014 Steffen Mikkelsen
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 *     Steffen Mikkelsen - initial API and implementation
 ******************************************************************************/
package com.subsecret.secureconnection.securestream;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import com.subsecret.tuples.Tuple.Tuple2;

public interface SecureStreamLayer {
    
    /**
     * 
     * @return Layer ID. Layer ID must be <= 20000
     */
    public int getLayerID();
    public String getLayerDescription();
    public Tuple2<InputStream,OutputStream> createLayerClient(InputStream in, OutputStream out) throws IOException;
    public Tuple2<InputStream,OutputStream> createLayerServer(InputStream in, OutputStream out) throws IOException;
      
}
